package pojo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

//等价于 <bean class="pojo.User" id="user"/>
//@Component 组件
@Component
public class User {

	//相当于<property name = "name" value = "kuangshen" />
	@Value("kuangshen")
	public String name;

}
